import request from '../utils/request';

export const loginAPI = ({ mobile, code }) => {
  return request({
    url: '/v1_0/authorizations',
    method: 'post',
    data: {
      mobile,
      code,
    },
  });
};

export const getUserProfile = () => {
  return request({
    url: '/v1_0/user/profile',
    method: 'get',
  });
};
